package org.jsbd.boss.service.impl;

import java.util.List;

import org.jsbd.boss.dao.IEmailInfoDAO;
import org.jsbd.boss.domian.EmailInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 渠道任务配置
 * 
 * @author <a href="mailto:zhangbinghua@zhexinit.com" >zbh</a>
 * @version 1.0.0
 */
@Service
public class EmailConfigService {
    public static final Logger LOGGER = LoggerFactory.getLogger(EmailConfigService.class);
    
    @Autowired
    private IEmailInfoDAO emailInfoDAO;
    
    public List<EmailInfo> getAllEmailInfo(){
    	return emailInfoDAO.getAllEmailInfo();
    }
	
	public Integer insertConfig(EmailInfo emailInfo){
		return emailInfoDAO.insertConfig(emailInfo);
	}
	
	public Integer deleteConfig(String userName){
		return emailInfoDAO.deleteConfig(userName);
	}
    
}
